//
// Created by Castle-Moriarty on 2025/11/8.
//

#include <iostream>
#include <ostream>

using namespace std;

int sum_up_to_zero(int value) {
    if (value!=0) {
        return value + sum_up_to_zero(value);
    }
    return 0;
}

int main() {
    cout << "sum :" << sum_up_to_zero(3) << endl;

    return 0;
}